﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.EventBus.Helpers
{
    internal class Helper
    {
        public static string ParseToString(Enum em)
        {
            var enumType = em.GetType();
            return $"{enumType.Assembly.GetName().Name};{enumType.FullName}.{em}";
        }

        public static string ParseToString<T>(T t)
        {
            var enumType = t.GetType();
            return $"{enumType.Assembly.GetName().Name};{enumType.FullName}.{t}";
        }

    }
}
